function displayAccesskeys() {
	if (!document.getElementById || !document.getElementsByTagName || !document.createElement || !document
		.createTextNode) return false;

	let navi = document.getElementById("navigation");
	if (!navi) return false;
	let akeys = new Array();
	let links = navi.getElementsByTagName("a");
	for (let i = 0; i < links.length; i++) {
		if (!links[i].getAttribute("accesskey")) {
			continue;
		}
		let key = links[i].getAttribute("accesskey");
		let text = links[i].firstChild.nodeValue;
		akeys[key] = text;
	}

	let list = document.createElement("ul");
	for (key in akeys) {
		let str = key + ": " + akeys[key];
		let item = document.createElement("li");
		let itemText = document.createTextNode(str);
		item.appendChild(itemText);
		list.appendChild(item);
	}
	
	let listHeader = document.createElement("h3");
	let headerText = document.createTextNode("Accesskeys");
	listHeader.appendChild(headerText);
	
	document.body.appendChild(listHeader);
	document.body.appendChild(list);
}

addLoadEvent(displayAccesskeys);